//
//  DateWheelViewController.h
//  KKZ
//
//  Created by  on 11-7-27.
//  Copyright 2011年 Tsinghua University. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>

@protocol DateDidFinishChooseDelegate;

@interface DateWheelViewController : UIViewController 
{
    CALayer *wheelLayer_;
    CALayer *wheelPickerLayer_;
    CGPoint _startPoint;
    NSString *time_;
    NSString *date_;
    UIDatePicker *datePicker;
    UILabel *timeLabel;
    
    id <DateDidFinishChooseDelegate> delegate;
}

@property (nonatomic, assign) id <DateDidFinishChooseDelegate> delegate;
@property (nonatomic, retain) IBOutlet UIDatePicker *datePicker;
@property (nonatomic, retain) IBOutlet UILabel *timeLabel;

- (void)rotateBegin:(CGPoint)point toNewPoint:(CGPoint)newPoint;
- (id)initWithDelegate:(id <DateDidFinishChooseDelegate>)aDelegate;

@end

@protocol DateDidFinishChooseDelegate

- (void)dateDidFinishChoose;

@end
